<?php TPL::output('global/header.tpl.htm'); ?>

<div class="bd">

<!--right_nav_s-->
<div class="tommy_rightDiv xBlog_tag">
  <div class="publishers">
    <h4 class="p_title">发布者</h4>
    <div class="publishers_info">
      <p class="faceHead"><a href="people/<?php echo $this->question_info['user_info']['user_name']; ?>"><img src="<?php echo get_avatar_url($this->question_info['published_uid'],'mid',$this->question_info['user_info']['avatar_file']); ?>" onMouseOver="eventsMouseM(this);"  rel="<?php echo $this->question_info['published_uid']; ?>"/></a></p>
      <p><a href="people/<?php echo $this->question_info['user_info']['user_name']; ?>"><?php echo $this->question_info['user_info']['user_name']; ?></a>
        <?php if ($this->user_id != $this->question_info['published_uid'] AND $this->user_id) { ?>
        <a href="javascript:;" onclick="follow_people($(this), $(this).find('em'), <?php echo $this->question_info['published_uid']; ?>); return false;" class="addtips<?php if ($this->user_follow_check) { ?> cur<?php } ?>"><em>
        <?php if ($this->user_follow_check) { ?>取消<?php } ?>关注</em></a>
        <?php } ?>
      </p>
      <b><?php echo $this->question_info['user_info']['signature']; ?></b> </div>
  </div>
  <?php if ($this->user_id) { ?>
  <div class=" RightListDiv">
    <h3 class="h3">邀请别人回复问题</h3>
		<p><a href="javascript:;" class="curr" onclick="elementClickEvent.letter.default_invite(this,0);">站内邀请<span class="defa_nums"<?php if(count($this->invite_users) == 0){ ?> style="display:none;"<?php } ?>><?php echo count($this->invite_users); ?></span></a>&nbsp;或者&nbsp;<a href="javascript:;" onclick="elementClickEvent.letter.default_invite(this,1);reload_email_invite_list(<?php echo $this->question_id; ?>);">邮件邀请</a></p>
    <div id="default_invite_0" class="hide">
      <div class="default_query">
        <input type="text" name="" class="default_seachTxt" title="搜索站内用户" value="搜索站内用户" onfocus="if(this.value==this.title){this.value='';}" onblur="if(this.value==''){this.value=this.title;};" id="default_seach_txt"/>
        <div id="default_ajax_query" class="default_class_query hide"></div>
      </div>
      <p class="default_inbites" id="default_inbites"> </p>
      <ul class="default_lsit_ul">
        <?php if($this->invite_users) { ?>
        <?php foreach($this->invite_users as $key => $val){ ?>
        <li><a href="javascript:;" onClick="cancel_question_invite($(this), <?php echo $this->question_id;?>,<?php echo $val['uid']; ?>)" class="default_exit cur">取消邀请</a><a href="people/<?php echo $val['user_name']; ?>" class="i_imgs"><img src="<?php echo $val['avatar_file']; ?>"/></a><a href="people/<?php echo $val['user_name']; ?>" class="dis_v2"><?php echo $val['user_name']; ?></a>
          <p><?php echo cjk_substr($val['signature'], 0, 12, 'UTF-8', '...'); ?></p>
        </li>
        <?php } ?>
        <?php } ?>
      </ul>
    </div>
    <div id="default_invite_1" class="hide">
		<form id="email_invite_form" onSubmit="return false;" action="question/ajax/email_invite/question_id-<?php echo $this->question_id; ?>" method="post">
			<div class="default_query">
				<input type="text" name="email" class="default_seachTxt" title="请输入邀请人邮箱" value="请输入邀请人邮箱" onfocus="if(this.value==this.title){this.value='';}" onblur="if(this.value==''){this.value=this.title;};" />
				<div id="default_ajax_query" class="default_class_query hide"> </div>
			</div>
			<p style="text-align:right; padding:5px 0;"><span class="default_blue_but" onclick="ajax_post($('#email_invite_form'), email_invite_form_processer); return false;">确定</span></p>
		</form>
			<ul class="default_lsit_ul" id="email_invite_list">
			</ul>
    </div>
  </div>
  <?php } ?>
  <?php if ($this->question_related_list) { ?>
  <div class=" RightListDiv">
    <h3 class="h3">相关问题<em></em></h3>
    <p class="for_question_list">
    <?php foreach($this->question_related_list AS $key => $val) { ?>
    <a href="question/<?php echo $val['question_id']; ?>"><?php echo $val['question_content']; ?><span class="s"><?php echo $val['answer_count'];?> 个回复</span></a>
    <?php } ?>
    </p>
  </div>
  <?php } ?>
  <div class=" RightListDiv" style="border-bottom:none;">
    <h3 class="h3">问题状态<em></em></h3>
    <p class="default_exe">最近活动：<span class="s"><?php echo date_friendly($this->question_info['update_time']); ?></span><br/>
      浏览：<span class="s"><?php echo $this->question_info['view_count']; ?></span> 次 <br/>
      关注者：<span class="s"><?php echo $this->question_info['focus_count']; ?></span> 人</p>
    <p class="default_GZ" id="focus_users"></p>
  </div>
</div>
<!--right_nav_e--> 
<!--left_nav_s-->
<div class="contant_left DIS_top discussion_element dis_ListEntry">
  <div id="Manytopics" class="shd" style="margin:10px 30px;">
  	<?php if ($this->question_info['category_info']['title']) { ?><a href="home/explore/category-<?php echo $this->question_info['category_info']['id']; ?>" class="class_all"><?php echo $this->question_info['category_info']['title']; ?></a><?php } ?>
    <div class="add_C" id="addtxt">
      <?php foreach($this->question_topics as $key => $val){ ?>
      <span val="<?php echo $val['topic_title']; ?>" id="<?php echo $val['topic_id']; ?>"><a href="topic/<?php echo $val['topic_title']; ?>" rel="<?php echo $val['topic_id']; ?>" onmouseover="eventstalk(this);"><?php echo $val['topic_title']; ?></a><em onclick="removeChilds(this)" class="hide">x</em></span>
      <?php } ?>
    </div>
    <?php if ($this->user_id) { ?>
    <a href="javascript:void(0);" class="editor" id="editor" onclick="hide('editorInput','editor','editorInput','editor hide',this)">话题编辑</a>
    <?php } ?>
    <?php if ($this->user_id) { ?>
    <div class="editorInput hide" id="editorInput">
      <div id="ajaxDate" class="hide">
        <div class="add" onclick="add('take');">添加 <span id="take" ></span>话题</div>
        <div id="txt"></div>
      </div>
      <input type="text" class="i_add" name="addName" >
      <a href="javascript:void(0);" class="default_blue_but" id="elmentsSubmite" onclick="hide('editor','editorInput','editor ','editorInput hide',this);addElementVALUE();">完成</a>
      <p id="err" class="cr hide">请勿重复添加话题！</p>
    </div>
    <?php } ?>
  </div>
  <h3 class="x_h3 ">
    <div id="ed_title_s"><span id="question_content"><?php echo $this->question_info['question_content']; ?></span>
    </div>
  </h3>
  <div class="congtxt">
    <div id="question_detail">
    	<?php echo $this->question_info['question_detail']; ?>
    </div>
  </div>
  
  <?php if ($this->question_info['attachs']) {  ?>
  <!--<h2 class="disH2"><em>●</em>附件</h2>-->
  <div class="congtxt fb_pd">
    <?php foreach ($this->question_info['attachs'] AS $key => $attach) { ?>
    <?php if (!in_array($attach['id'], $this->question_info['attachs_ids'])) { ?>
    	<?php if ($attach['is_image']) { ?>
    	<a href="<?php echo $attach['attachment']; ?>" target="_blank" rel="lightbox"><img src="<?php echo $attach['attachment']; ?>" alt="<?php echo $attach['attach_name']; ?>" /></a>
    	<?php } else { ?>
    	<p><a class="file_ico" href="<?php echo download_url($attach['file_name'], $attach['attachment']); ?>"><?php echo $attach['file_name']; ?></a></p>
    	<?php } ?>
    <?php } ?>
    <?php } ?>
  </div>
  <?php } ?>
  
	<div class="default_review default_vGi">
   
    <div class="fr default_SZ defa_log">
            
          <a onclick="elementClickEvent.letter.default_anonymity(event);" href="javascript:" class="default_set fr">设置</a>
          <?php if ($this->user_id) { ?><a href="javascript:;" class="default_blue_but<?php if ($this->question_focus) { ?> cur<?php } ?>" onclick="focus_question($(this), $(this), <?php echo $this->question_id; ?>); return false;"><?php if ($this->question_focus) { ?>取消<?php } ?>关注</a><?php } ?>
		  <p class="default_setPosition hide"> 
		  <?php if ($_GET['column'] == 'log') { ?>
		  	<a class="Questionfor_user" href="question/<?php echo $this->question_id; ?>">问题讨论</a>
		  <?php } else { ?>
		  	<a class="Questionfor_user" href="question/id-<?php echo $this->question_id; ?>__column-log__rf-false">修改记录</a>
		  <?php } ?>
		  <?php if ($this->question_info['redirect'] AND $this->user_id) { ?>
		  	<a class="Questionfor_user" href="javascript:;" onclick="ajax_request(G_BASE_URL + '/question/ajax/redirect/', 'item_id=<?php echo $this->question_id; ?>');">撤消问题重定向</a>
		  <?php } else if ($this->user_id) { ?>
		  	<a class="Questionfor_user" href="javascript:;" onclick="aw.redirection().s();">问题重定向</a>
		  <?php } ?>
          </p>
     </div>
    
	<span class="default_releasetime"><?php echo date_friendly($this->question_info['add_time']); ?></span><a href="javascript:;" class="layer_imgs layer_pl" onclick="toggle_comments(<?php echo $this->question_id; ?>, 'question'); return false;"><?php echo $this->question_info['comment_count']; ?> 条评论</a><?php if ($this->question_info['published_uid'] == $this->user_id OR $this->user_info['permission']['is_administortar'] OR $this->user_info['permission']['is_moderator'] OR $this->user_info['permission']['edit_question']) { ?><a class="layer_imgs layer_ed" href="publish/question_id-<?php echo $this->question_id; ?>#question">编辑</a><?php } ?><?php if ($this->user_id == $this->question_info['published_uid'] OR $this->user_info['permission']['is_administortar'] OR $this->user_info['permission']['is_moderator']) { ?><a href="javascript:;" class="layer_imgs layer_p2" onclick="remove_question(<?php echo $this->question_id; ?>); return false;">删除</a><?php } ?><?php if (($this->user_info['permission']['is_administortar'] OR $this->user_info['permission']['is_moderator']) AND $this->question_info['ip']) { ?><a href="javascript:;" title="<?php echo long2ip($this->question_info['ip']); ?>" onclick="qAlert('系统记录的 IP 地址为: <?php echo long2ip($this->question_info['ip']); ?>');" class="layer_imgs layer_ip">IP 地址</a><?php } ?><?php if ($this->question_info['unverified_modify_count']) { ?><a href="question/id-<?php echo $this->question_id; ?>__column-log__rf-false" class="layer_imgs layer_p3">待确认修改<em><?php echo $this->question_info['unverified_modify_count']; ?></a><?php } ?><?php if ($this->user_id) { ?><div class="for_question_v2" onMouseOver="this.className='for_question_v2 m';" onMouseOut="this.className='for_question_v2';"></em><span class="etc_v5">分享</span><p>
<?php if (get_setting('sina_weibo_enabled') == 'Y' OR get_setting('qq_t_enabled') == 'Y') { ?>
<span class="etc_v2"  onclick="share_content('question', <?php echo $this->question_id; ?>, 'weibo', SYSTEM_WEIBO_ENABLED);"><em class="el_v2 el_weibo"></em>微博</span>
 <?php } ?>
<span class="etc_v2" onclick="share_content('question', <?php echo $this->question_id; ?>, 'letter', SYSTEM_WEIBO_ENABLED);"><em class="el_v2 el_leter"></em>私信</span><span class="etc_v2"  onclick="share_content('question', <?php echo $this->question_id; ?>, 'mail', SYSTEM_WEIBO_ENABLED); return false;"><em class="el_v2 el_mail"></em>邮件</span></p></div><?php } ?>

	</div>
	
	<!--评论_s-->
	<div class="default_comment default_comment_top" id="question_comments_<?php echo $this->question_id; ?>" style="display:none"> 
	  <!--用户评论展示_s-->
	  <div name="comments_list"></div>
	  <!--用户评论展示_e-->
	  <form action="question/ajax/save_question_comment/question_id-<?php echo $this->question_id; ?>" method="post" class="post_question_form">
	    <?php if ($this->user_id) { ?>
	    <input class="default_textArea" type="text" name="message" class="answer_content" onkeydown="if (event.keyCode == 13) { ajax_post($('#question_comments_<?php echo $this->question_id; ?> form'), _comments_form_processer); return false; }" />
	    <p class="default_save"> <a href="javascript:;" onclick="toggle_comments(<?php echo $this->question_id; ?>, 'question'); return false;">取消</a> <a class="save_txt default_blue_but" onclick="ajax_post($('#question_comments_<?php echo $this->question_id; ?> form'), _comments_form_processer);return false;" href="#">确定</a> </p>
	    <?php } else { ?>
	    要参与问题讨论请先<a href="account/login/">登录</a>或<a href="account/register/">注册</a>
	    <?php } ?>
	  </form>
	</div>
	<!--评论_e-->
</div>
<div class="contant_left readns_discus index dis_ListEntry"> <a name="answers"></a>
  <h2 class="c_title">
    <?php if ($this->user_id AND $_GET['column'] != 'log') { ?>
    <p class="sux" id="sux"><a href="question/id-<?php echo $this->question_id; ?>__sort_key-agree_count__sort-DESC"<?php if ((!$_GET['uid'] && !$_GET['sort_key']) || $_GET['sort_key'] == 'agree_count') { ?> style="font-weight:bold;"<?php } ?>>按票数排序</a><a href="question/id-<?php echo $this->question_id; ?>__sort_key-add_time__sort-<?php if(($_GET['sort_key'] == 'add_time')&&$_GET['sort']=='ASC'){echo 'DESC';}else{echo 'ASC';}?>"<?php if ($_GET['sort_key'] == 'add_time') { ?> style="font-weight:bold;"<?php } ?>>• 按时间排序<?php if(($_GET['sort_key'] == 'add_time')&&$_GET['sort']=='DESC'){?><em class="asc_Order"></em><?php }else{ ?><em class="des_Order"></em><?php } ?></a><a href="question/id-<?php echo $this->question_id; ?>__uid-focus" <?php if ($_GET['uid'] == 'focus') { ?> style="font-weight:bold;"<?php } ?>>• 只显示我关注的人</a> </p>
    <?php } ?>
    
    <?php if ($_GET['column'] == 'log') { ?><a href="question/<?php echo $this->question_id; ?>" class="all_answer">返回讨论</a>问题日志<?php } else { ?><?php echo $this->answer_count; ?> 个回复<?php } ?></h2>
    
  <?php if ($_GET['column'] == 'log') { ?>
    <div id="layer_0"> 
      <div id="c_log_list"><p style="padding: 15px 0" align="center"><img src="<?php echo G_STATIC_URL; ?>/common/loading_b.gif" alt="" /></p></div>
      
      <div class="moreDiv" id="bp_log_more"><a href="#" class="mores">更多<em></em></a></div>
    </div>
    
    <script type="text/javascript">$(document).ready(function () { bp_more_load(G_BASE_URL + '/question/ajax/log/id-' + QUESTION_ID, $('#bp_log_more'), $('#c_log_list')); });</script>
  <?php } else { ?>
  <div class="BeforClass">
    <?php if ($this->answers) { foreach ($this->answers AS $key => $val) { ?>
    <?php if ($this->question_info['best_answer'] == $val['answer_id']) { ?>
    <div class="default_winner"><span class="winner_cup">奖杯</span><h3 class="best_reply">最佳回复</h3>
      <?php } ?>
      <a name="answer_<?php echo $val['answer_id']; ?>"></a>
      <ul class="contxt_List" uninterested_count="<?php echo $val['uninterested_count']; ?>" force_fold="<?php echo $val['force_fold']; ?>" id="answer_list_<?php echo $val['answer_id']; ?>">
        <li>
          <div class="default_txt">
          	<p class="default_JF_ri">
            <?php if ($this->user_id AND $this->user_id != $val['uid']) { ?>
            <a name="<?php echo $val['answer_id']; ?>" status="<?php echo $val['agree_status']; ?>"></a> <a class="default_num defa_agree<?php if($val['agree_status'] == '1'){ ?> up_cur<?php } ?>" onClick="change_agree($(this), '1')" href="javascript:;" onMouseMove="aw.elems_tips(this,<?php if($val['agree_status'] == '1'){ ?>1<?php }else{ ?>0<?php } ?>);">赞同 </a><span name="agree_num" class="agree_num"><?php echo $val['agree_count']; ?></span>  <a class="default_num defa_oppose<?php if($val['agree_status'] == '-1'){ ?> down_cur<?php } ?>" onClick="change_agree($(this), '-1')" href="javascript:;"  onMouseMove="aw.elems_tips(this,<?php if($val['agree_status'] == '-1'){ ?>3<?php }else{ ?>2<?php } ?>);">反对</a>
            <?php } else { ?>
			<a name="<?php echo $val['answer_id']; ?>" status="<?php echo $val['agree_status']; ?>"></a> <a class="default_num defa_agree prohibit_up" href="javascript:;">赞同 </a> <span name="agree_num" class="agree_num"><?php echo $val['agree_count']; ?></span> <a class="default_num defa_oppose prohibit_down " href="javascript:;">反对</a>
			<?php } ?>
			</p>
            <h3 class="default_uh"><a class="default_ubd" href="people/<?php echo $val['uname']; ?>"><?php echo $val['uname']; ?></a>
              <?php if ($val['signature']) { ?>
              ，<?php echo $val['signature']; ?>
              <?php } ?>
            </h3>
            <p class="default_ticket" name="agree_user_list" style="display:<?php if($val['agree_count'] == 0){ ?>none;<?php } else { ?>block<?php } ?>"> 赞同来自&nbsp; <span class="agee_people">
              <?php if ($val['agree_users']) { ?>
              <?php $count = 0; foreach($val['agree_users'] AS $uid => $user){ ?><a href="people/<?php echo $user;?>" rel="<?php echo $uid;?>" onmouseover="eventsMouseM(this);" name="agee_people" class="a<?php if($count >= 5){ ?> hide<?php } ?>"><?php echo $user;?></a><?php if(count($val['agree_users']) != ++$count && $count < 5) { ?>、<?php } ?><?php } ?>
				<a onclick="agree_user_more($(this));" class="tks_more<?php if (count($val['agree_users']) <= 5) { ?> hide<?php } ?>" href="javascript:;">更多 »</a>
              <?php } ?>
              </span> </p>
            <div class="infotx">
            <div id="answer_content_<?php echo $val['answer_id']; ?>">
	            <?php echo FORMAT::parse_attachs($val['answer_content']); ?>
            </div>
            
            <?php if ($val['attachs']) { ?>
            <p class="imgScroll">
              <?php foreach ($val['attachs'] AS $attach) {  ?>
              <?php if ($attach['is_image'] AND !in_array($attach['id'], FORMAT::parse_attachs($val['answer_content'], true))) { ?>
              <a href="<?php echo $attach['attachment']; ?>" target="_blank" rel="lightbox"/><img src="<?php echo $attach['attachment'] ?>" alt="<?php echo $attach['attach_name']; ?>"></a>
              <?php } ?>
              <?php } ?>
            </p>
            
            <?php foreach ($val['attachs'] AS $attach) { ?>
            <?php  if(!$attach['is_image'] AND !in_array($attach['id'], FORMAT::parse_attachs($val['answer_content'], true))) { ?>
            <p><a class="file_ico" href="<?php echo download_url($attach['file_name'], $attach['attachment']); ?>"><?php echo $attach['file_name']; ?></a></p>
            <?php } ?>
            <?php } ?>
            <?php } ?>
            </div>
            <p class="default_ticket"><?php echo date_friendly($val['add_time']); ?>&nbsp;&nbsp;<a href="javascript:;" class="layer_imgs layer_pl" onclick="toggle_comments(<?php echo $val['answer_id']; ?>, 'answer'); return false;"><?php echo $val['comment_count']; ?> 条评论</a>
              <?php if ($this->user_id) { ?>
              &nbsp;&nbsp;<a href="javascript:;" onClick="share_content('answer', <?php echo $val['answer_id'];?>, 'mail', SYSTEM_WEIBO_ENABLED);" class="layer_imgs layer_s">分享</a>
              <?php if($this->user_id!=$val['uid']){ ?>
              &nbsp;&nbsp;<a onMouseMove="aw.elems_tips(this,4);" href="javascript:;"<?php if (!$val['user_rated_thanks']) { ?> onclick="answer_user_rate(<?php echo $val['answer_id'];?>, 'thanks', this);"<?php } ?> class="layer_imgs layer_t">
              <?php if ($val['user_rated_thanks']) { ?>已<?php } ?>感谢</a>&nbsp;&nbsp;

			<?php if($this->user_info['permission']['is_administortar'] OR $this->user_info['permission']['is_moderator']){ ?>
				<a href="javascript:;" onclick="answer_force_fold(<?php echo $val['answer_id'];?>, this);" class="layer_imgs layer_n"><?php if ($val['force_fold']) { ?>撤消<?php } ?>折叠</a>
			<?php }else{ ?>
				<a href="javascript:;" onMouseMove="aw.elems_tips(this,5);" onclick="answer_user_rate(<?php echo $val['answer_id'];?>, 'uninterested', this);" class="layer_imgs layer_n"><?php if ($val['user_rated_uninterested']) { ?>撤消<?php } ?>没有帮助</a>
			<?php } ?>

              <?php } ?>
              <?php } ?>
              <?php if (($this->user_info['permission']['is_administortar'] OR $this->user_info['permission']['is_moderator']) OR ($val['uid'] == $this->user_id AND (time() - $val['add_time']) < (get_setting('answer_edit_time') * 60))) { ?>
              &nbsp;&nbsp;<a href="javascript:;" onclick="edit_answer(<?php echo $val['answer_id']; ?>); return false;" class="layer_imgs layer_ed">编辑</a>&nbsp;&nbsp;<a href="javascript:;" onclick="remove_answer(<?php echo $val['answer_id']; ?>); return false;" class="layer_imgs layer_del">删除</a>
              <?php } ?>
              <?php if (($this->user_info['permission']['is_administortar'] OR $this->user_info['permission']['is_moderator']) AND $val['ip']) { ?><a href="javascript:;" title="<?php echo long2ip($val['ip']); ?>" onclick="qAlert('系统记录的 IP 地址为: <?php echo long2ip($val['ip']); ?>');" class="layer_imgs layer_ip">IP 地址</a><?php } ?>
            </p>
                        
            <!--评论_s-->
            <div class="default_comment" id="answer_comments_<?php echo $val['answer_id']; ?>" style="display:none"> 
              <!--用户评论展示_s-->
              <div name="comments_list"></div>
              <!--用户评论展示_e-->
              <form action="question/ajax/save_answer_comment/answer_id-<?php echo $val['answer_id']; ?>" method="post">
                <?php if ($this->user_id) { ?>
                <input class="default_textArea" type="text" name="message" class="answer_content" onkeydown="if (event.keyCode == 13) { ajax_post($('#answer_comments_<?php echo $val['answer_id']; ?> form'), _comments_form_processer); return false; }" />
                <div class="default_save"><a href="javascript:;" onclick="toggle_comments(<?php echo $val['answer_id']; ?>, 'answer'); return false;">取消</a> <a class="answer_comments save_txt default_blue_but" onclick="save_answer_comment(<?php echo $val['answer_id']; ?>, this); try{ this.parentNode.parentNode.getElementsByTagName('input')[0].value=''; }catch(e){} return false;" href="javascript:;">确定</a> </div>
                <?php } else { ?>
                要参与问题讨论请先<a href="account/login/">登录</a>或<a href="account/register/">注册</a>
                <?php } ?>
              </form>
            </div>
            <!--评论_e--> 
          </div>
        </li>
		
        <li class="userFace"><a href="people/<?php echo $val['uname']; ?>" class="posiMgs_face"><img src="<?php echo get_avatar_url($val['uid'],'mid',$val['avatar_file']); ?>" onMouseOver="eventsMouseM(this);"  rel="<?php echo $val['uid']; ?>"/></a></li>
      </ul>
      <?php if ($this->question_info['best_answer'] == $val['answer_id']) { ?>
    </div>
    <?php } ?>
    <?php } ?>
    <?php } ?>
    <p id="load_uninterested_answers" style="display: none;" class="more default_more"><a href="javascript:;" class="a" onclick="qAlert('被折叠的回复是被大多数用户认为没有帮助的回复.');">为什么被折叠？</a><a href="javascript:;" class="b" onclick="elementClickEvent.letter.default_more(event); $('#uninterested_answers_list').toggle();"><span class="hide_answers_count">0</span> 个回复被折叠 </a></p>
    <div class="BeforClass" style="display: none;" id="uninterested_answers_list"></div>
    <a name="answer_form"></a>
    <div class="say_u" id="say_u">
      <?php if (!$this->user_id) { ?>
      <p align="center">要查看所有问题和参与问题请先<a href="account/login/">登录</a>或<a href="account/register/">注册</a></p>
      <?php } else if ($this->user_answered) { ?>
      <p align="center">一个问题只能回复一次，你可以编辑回复过的回复</p>
      <?php } else if ((get_setting('answer_self_question') == "N") && ($this->user_id == $this->question_info['published_uid'])) { ?>
      <p align="center">不能回复自己发布的问题，你可以在问题发布后的<?php echo get_setting('question_edit_time'); ?>分钟内修改问题</p>
      <?php } else { ?>
      <div class="txtarea">
        <form action="question/ajax/save_answer/" onsubmit="return false;" method="post" id="answer_form">
        	<input type="hidden" name="post_hash" value="<?php echo new_post_hash(); ?>" />
        	<input type="hidden" name="question_id" value="<?php echo $this->question_id; ?>" />
        	<input type="hidden" name="attach_access_key" value="<?php echo $this->attach_access_key; ?>" />
        	
        	<div style="margin-bottom: 15px">
	        		<textarea name="answer_content" id="answer_content" class="answer_content" rows="6"></textarea>
	        </div>
	        <div class="pre default_file_upload">
	        <div id="file_uploader_answer" class="_ajax_uploader userUploadDate"></div>
            <div class="default_reply_as">
            	
            	<?php if ($this->human_valid) { ?>
            	<span class="default_aotoNum"><img id="captcha" onclick="this.src = G_BASE_URL + '/account/captcha/rnd-' + Math.random();" title="点击换一张" src=""></span>
                <input type="text" class="default_autoCode" name="seccode_verify"> &nbsp;
                <?php } ?>
                
                <a class="default_blue_but" onclick="ajax_post($('#answer_form')); return false;" id="re_default_submit" href="javascript:;" title="回复">回复</a>
                <p class="empty_cont">[Ctrl+Enter 快捷回复]</p>
             </div>
             </div>
	        <p id="answer_content_message"></p>
	    </form>
      </div>
      <?php } ?>
    </div>
    <?php } ?>
  </div>
  <!--left_nav_e--> 
</div>

<script type="text/javascript">
ATTACH_ACCESS_KEY = '<?php echo $this->attach_access_key; ?>';
ITEM_IDS = '<?php echo $_GET['item_id']; ?>';
COMMENT_UNFOLD = '<?php echo $_GET['comment']; ?>';
QUESTION_ID = <?php echo $this->question_id;?>;
UNINTERESTED_COUNT = <?php echo get_setting('uninterested_fold'); ?>;

<?php if (get_setting('sina_weibo_enabled') == 'Y' OR get_setting('qq_t_enabled') == 'Y') { ?>
SYSTEM_WEIBO_ENABLED = 'Y';
<?php } ?>

<?php if ($this->redirect_message) { ?>
$(document).ready(function () {
	<?php foreach ($this->redirect_message AS $key => $message) { ?>
		header_message('<?php echo $message; ?>');
	<?php } ?>
});
<?php } ?>
</script>

<?php TPL::output('global/footer.tpl.htm'); ?>